#include "BallFeeder.h"
#include "../Robotmap.h"

BallFeeder::BallFeeder() : Subsystem("BallFeeder") {
	
	ballFeederMotor = new Victor(RobotMap::OTHER_BALL_FEEDER_MOTOR);
	ballFeedereOn = false;
}

void BallFeeder::InitDefaultCommand() {
	// Set the default command for a subsystem here.
	//SetDefaultCommand(new MySpecialCommand());
}

bool BallFeeder::isBallFeederOn() {
	return ballFeedereOn;
}

void BallFeeder::setBrushOff() {
	ballFeederMotor->SetSpeed(0);
	ballFeedereOn = false;
}

void BallFeeder::setBrushOn() {
	ballFeederMotor->SetSpeed(1.0);
	ballFeedereOn = true;
}

